package com.code.day05;

public class DieTest {
    public static void main(String[] args) {
        Dielock dielock1 = new Dielock(true);
        Dielock dielock2 = new Dielock(false);
        Thread threadA = new Thread(dielock1);
        Thread threadB = new Thread(dielock2);
        threadA.start();
        threadB.start();
    }
}
